package com.zhy.provider;

import com.zhy.rpc.registry.LocalRegistry;
import com.zhy.rpc.server.HttpServer;
import com.zhy.common.service.UserService;
import com.zhy.rpc.server.VertxHttpServer;

/**
 * @author 随缘而愈
 * @version 1.0
 * @description 服务提供者
 * @date 24/2/2024 下午3:45
 */

public class ProviderApplication {
    public static void main(String[] args) {
        //注册服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);

        //启动服务
        HttpServer httpServer = new VertxHttpServer();
        httpServer.doRun(8080);
    }
}
